import { axios } from '@/utils/request'
export function orderList(params) {
    return axios({
      url: '/school/orders',
      method: 'post',
      data: params
    })
  }
//详情
export function orderdetails(id){
  return axios({
    url:'school/orders/'+id,
    method:'post',
  })
}

//补交
export function makeup(params,id){
  return axios({
    url:'school/orders/'+id+'/make-up',
    method:'post',
    data:params
  })
}
//废除合同
export function abolishcontract(params,id){
   return axios({
    url:'school/orders/'+id+'/rescind',
    method:'post',
    data:params
   })
}

//批量废除合同
export function abolishcontractMore(params){
  return axios({
   url:'school/orders/batch-rescind',
   method:'post',
   data:params
  })
}

//导出
export function ordersexport(params){
  return axios({
  //  url:'school/orders/export?school_id=' + params.school_id + '&order_no='+params.order_no +'&student_keywords=' +params.student_keywords +'&content_name='+ params.content_name,
  url:'school/orders/export',
  params: params,
  method:'get',
  })
}
//订单统计
export function ordercount(school){
  return axios({
   url:'school/orders/count-price',
   method:'post',
   data:school
  })
}

//订单编辑
export function orderedit(school,id){
  return axios({
   url:`school/orders/${id}/update`,
   method:'post',
   data:school
  })
}
//操作日志
export function logs(params,id){
  return axios({
   url:`school/orders/`+id+`/logs`,
   method:'post',
   data:params
  })
}